package com.nus.fellowmark.dao;

import com.nus.fellowmark.entity.SysMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * System Menu/Privilege Table
 * 
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-11  
 */
@Mapper
public interface SysMenuDao extends BaseMapper<SysMenuEntity> {

    List<SysMenuEntity> getMenuOrPermissionList(@Param("userId") Integer userId, @Param("type") String type);


    List<SysMenuEntity> getMenuListByRoleId(int roleId);


    List<SysMenuEntity> getPermissionCodeByRoleId(int roleId);


}
